<template>
  <div>
    <el-upload class="upload-demo"
               ref="upload"
               drag
               action="https://jsonplaceholder.typicode.com/posts/"
               :auto-upload="false">
      <i class="el-icon-upload"></i>
      <div class="el-upload__text">将文件拖到此处，或
        <em>点击上传</em>
      </div>
      <div class="el-upload__tip"
           slot="tip">只能上传xls/xlsx/xlsm文件，且不超过5MB</div>
    </el-upload>
  </div>
</template>

<script>
export default {
  name: 'uploadExcel',
  created() {},
  mounted() {},
  props: {},
  watch: {},
  data() {
    return {}
  },
  methods: {}
}
</script>

<style language="scss" scoped>

</style>
